/*!
 * @file actionInclude.cpp
 * @brief Ciało actionInclude.hh
 */

#include "engine/cmd/actionInclude.hh"
using namespace std;

/*--------------------------------------------------------------------------*/

actionInclude::actionInclude() :
	actionBase("include") {
}

/*--------------------------------------------------------------------------*/

void actionInclude::doAction(std::string *array, int count, std::stringstream *ss) {

	if(count == 2){
		cmd::execute("echo Wczytywanie skryptu: " + array[1]);

		cmd::executeFile("pawirr/cmd/" + array[1]);
	}
}

/*--------------------------------------------------------------------------*/
